using System;

namespace DataLayer
{
	/// <summary>
	/// Summary description for FieldAttribute.
	/// </summary>
	[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
	public class FieldAttribute: Attribute
	{
		private string name;
		private bool primaryKey;

		public FieldAttribute()
		{
			
		}

		public FieldAttribute(string name)
		{
			primaryKey = false;
			this.name = name;
		}

		public FieldAttribute(string name, bool primaryKey)
		{
			this.primaryKey = primaryKey;
			this.name = name;
		}

		public string Name
		{
			get { return name; }
			set { name = value; }
		}

		public bool PrimaryKey
		{
			get { return primaryKey; }
			set { primaryKey = value; }
		}
	
	}
}
